package com.wanbangee.marksystem.analysisservice;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="kaojinbang-examination-setting-provider")
public interface QueryCurrentExamService {

	@RequestMapping(value = "/all/allexams")
	public Map<String, Object> selectCurrentAllExams(@RequestParam("accId")Integer accId);
	
	@RequestMapping(value = "/all/allclasses")
	public Map<String, Object> selectAllClass(@RequestParam("examId")Integer examId);
	
	@RequestMapping(value = "/all/allsubjects")
	public Map<String, Object> selectAllSubject(@RequestParam("examId")Integer examId);
	
	/**
	 * 查询优秀卷和典型错误卷
	 * @param examId
	 * @param subId
	 * @param claId
	 * @param topicNo
	 * @param recordType
	 * @return
	 */
	@RequestMapping("/topicNoScoreInfo/selectExcellenceAndErrAnswerSheet")
	public Map<String, Object> selectExcellenceAndErrAnswerSheet(@RequestParam("examId")Integer examId,@RequestParam("subId")Integer subId,@RequestParam("claId")Integer claId,
			@RequestParam("topicNo")String topicNo,@RequestParam("recordType")Integer recordType);
	
	/**
	 * 查询该题是单评还是多评
	 * @param examId
	 * @param subId
	 * @param topicNo
	 * @return
	 */
	@RequestMapping("/topicNoScoreInfo/selectStuSubjective")
	public Integer selectTopicScoreType(@RequestParam("examId")Integer examId,@RequestParam("subId")Integer subId,@RequestParam("topicNo")String topicNo);
	
	/**
	 * 查询该考试科目指定题目的分数
	 * @param examId
	 * @param subId
	 * @param topicNo
	 * @return
	 */
	@RequestMapping("/topicNoScoreInfo/selectSubjectiveDistribution")
	public Double selectSubjectiveDistribution(@RequestParam("examId")Integer examId,@RequestParam("subId")Integer subId,@RequestParam("topicNo")String topicNo);
}
